convert notebook code into slideshow